package com.rabbitmq.demo.conf;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 简单模式
 * SimpleQueue
 * @Author yi.cheng
 * @Date 2023-7-11 17:11
 **/
@Configuration
public class SimpleQueueConfig {

    // 队列名称
    public final static String SIMPLE_QUEUE_NAME = "HelloWorld";

    @Bean
    public Queue getSimpleQueue(){
        return new Queue(SIMPLE_QUEUE_NAME);
    }

}
